/**
 * Created on Mar 05, 2010
 *
 * Copyright (c) 2010, The MAGI Project.
 * All rights reserved.
 *
 * This software is open-source under the GNU General Public License v3;
  */

package org.braincore.common;

/**
 * Dendrite data class.
 * @author Carlos Giraldo carlgira@gmail.com
 */
public class Dendrite
{
    /**
     * Dendrite identifier, integer of 10 digits.
     */
    private Integer _id;

    /**
     * Its the weight of dendrite. It means the amount of use of the dendrite.
     */
    private Integer _weight;
    
    /**
     * Its the relation, between the two neurons.
     * NOTE 05-03-10 Could change to other  class type.
     */
    private String _relation;

    public Dendrite(Integer _id) {
        this._id = _id;
        _weight = 0;
    }

    public Dendrite(Integer _id, Neuron _neuronSource,Neuron _neuronDestiny ) {
        this._id = _id;
        _weight = 0;
  //      this._neuronSource = _neuronSource;
  //      this._neuronDestiny = _neuronDestiny;
    }

    public Dendrite(Integer _id, Neuron _neuronSource, Neuron _neuronDestiny, Integer _weight, String _relation) {
        this._id = _id;
   //     this._neuronSource = _neuronSource;
   //     this._neuronDestiny = _neuronDestiny;
        this._weight = _weight;
        this._relation = _relation;
    }

    public Dendrite(Integer _id, Integer _weight, String _relation) {
        this._id = _id;
        this._weight = _weight;
        this._relation = _relation;
    }
    
    public Integer getId() {
        return _id;
    }

    public void setId(Integer _id) {
        this._id = _id;
    }
/*
    public Neuron getNeuronDestiny() {
        return _neuronDestiny;
    }

    public void setNeuronDestiny(Neuron _neuronDestiny) {
        this._neuronDestiny = _neuronDestiny;
    }

    public Neuron getNeuronSource() {
        return _neuronSource;
    }

    public void setNeuronSource(Neuron _neuronSource) {
        this._neuronSource = _neuronSource;
    }
*/
    public String getRelation() {
        return _relation;
    }

    public void setRelation(String _relation) {
        this._relation = _relation;
    }

    public Integer getWeight() {
        return _weight;
    }

    public void setWeight(Integer _weight) {
        this._weight = _weight;
    }
}
